#!/bin/bash
sleep 60
cd `dirname $0`
ip=`ifconfig | grep 192 | awk '{print $2}'`
#ip=`hostname -I`
echo $ip > ip.txt
echo `date` >> ip.txt

git add .
git commit -m "change ip to ${ip}"
git push -u origin master
sudo systemctl stop piip.service
